package ${package}.${moduleName}.meta.entity.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
*
* ${tableComment}(${functionName})
*
* @author ${author} ${email}
* @since ${version} ${date}
*/
@Data
public class ${ClassName}Request implements Serializable {

    private static final long serialVersionUID = 1L;

<#list fieldList as field>

    <#if field.attrName == 'deleteMark' || field.attrName == 'createUserId'|| field.attrName == 'createDate'|| field.attrName == 'modityUserId'|| field.attrName == 'modityDate'|| field.attrName == 'modifyUserId'|| field.attrName == 'modifyDate'>
    <#elseif !field.baseField>
        <#if field.fieldComment!?length gt 0>
            @ApiModelProperty(value = "${field.fieldComment}")
        </#if>
        <#if field.formRequired>
            @NotNull(message = "${field.fieldComment}不能为空")
        </#if>
        <#if field.attrType == 'LocalDateTime'>
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        </#if>
        private ${field.attrType} ${field.attrName};
    </#if>
</#list>
}
